package cn.dengta.webapp.user.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 错误登录日志
 *
 * @author lgy
 * @since 2022-02-25
 */
@Getter
@Setter
@Accessors(chain = true)
public class ErrorLoginLog extends TimeBasedEntity {

	/** 用户唯一标识 */
	String identity;
	/** 客户端ID */
	Long clientInfoId;
	/** 登录IP */
	String addIp;

	public ErrorLoginLog init(String identity, Long clientInfoId, Date addTime, String addIp) {
		this.identity = identity;
		this.clientInfoId = clientInfoId;
		this.addTime = addTime;
		this.addIp = addIp;
		return this;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
